<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Template extends CI_Controller {

    public function login_user($page = 'login')
    {

        if ( ! file_exists('application/views/pages/'.$page.'.php'))
        {
            // Whoops, we don't have a page for that!
            show_404();
        }

        $data['title'] = ucfirst($page);

        $this->load->view('template/header', $data);
        $this->load->view('pages/'.$page,$data);
        $this->load->view('template/footer');

    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */